export default class TableColumnModel {
    /**
     * 列名
     */
    public label: string = ''
    /**
     * 列关键字
     */
    public prop: string = ''
    /**
     * 宽度
     */
    public width?: string | number = 180
    /**
     * 是否固定
     */
    public fixed?: boolean | 'left' | 'right' = false

    constructor(arg: TableColumnModel) {
        this.label = arg.label
        this.prop = arg.prop
        this.width = arg.width || 180
        this.fixed = arg.fixed || false
    }
}
